import type { RouteRecordRaw } from 'vue-router'

const loanRouter: RouteRecordRaw = {
    path: '/loan',
    component: () => import('@/layout/Index.vue'),
    children: [
        {
            path: 'index',
            component: () => import('@/views/loan/LoanIndex.vue'),
            meta: {
                title: '首页',
                level: 2
            }
        },
        {
            path: 'loanList',
            component: () => import('@/views/loan/LoanListView.vue'),
            meta: {
                title: '贷款信息列表',
                level: 2
            }
        },
    ],
    meta: {
        title: '贷款管理',
        icon: 'qianbao',
        level: 1,
        hasChild: true
    }
}

export default loanRouter